<style>
.dl-horizontal dt {
    width: 80px;
}
.dl-horizontal dd {
    margin-left: 105px;
}
.admin_add_well {
 padding: 1px;	
}
</style>
<div class="tabbable tabs-left">
  <ul class="nav nav-tabs">
    <li><h5><?php echo $this->translate('订单详细信息'); ?></h5></li>
    <li class="active"><a data-toggle="tab" href="#user_a"><?php echo $this->translate('基本信息'); ?></a></li>
  </ul>
  <form class="form-horizontal" name="order_form" id="order_form" method="post" />
    <div class="tab-content">
      <div  id="sticky_navigation" style="height:30px;border-bottom:4px solid #DFDFDF;">
        <div class="pull-left" style="font-size:16px;line-height:30px;"><strong><?php echo $this->translate('订单'); ?>&nbsp;<?php echo $this->order_info->order_sn; ?>&nbsp;|&nbsp;<?php echo date("Y-m-d H:i", $this->order_info->order_time); ?>&nbsp;(<span class="text-success"><?php echo $this->frontwebsite()->getOneOrderStateInfo($this->order_info->order_state); ?></span>)<?php if($this->order_info->refund_state==1) echo ' [<span style="color: red;">'.$this->translate('已退货').'</span>]'; ?></strong></div>
        <div class="pull-right">
        	<a href="<?php echo $this->url('orders/default/page',array('controller'=>'Orders','action'=>'index','page'=>$this->page), array('query'=>$this->query)); ?>" class="btn btn-small"><i class="icon-arrow-left"></i> <?php echo $this->translate('返回订单列表'); ?></a>&nbsp;
           

        </div>
      </div>
      <div id="user_a" class="tab-pane active">

       

		<div class="row-fluid">
          <div class="span6">
            <div class="well admin_add_header_well"><?php echo $this->translate('订单总额'); ?>
            <?php if ($this->order_info->order_state < 15 or ($this->order_info->order_state == 30 and $this->order_info->pay_code == 'hdfk')) { ?>
            <a href="javascript:;" onclick="edit_order_amout();" class="btn btn-small btn-primary pull-right" style="line-height:8px;"><?php echo $this->translate('修改订单总额'); ?></a>
            <?php } ?>
            </div>
            <div class="well admin_add_well">
                <dl class="dl-horizontal">
    				<dt><?php echo $this->translate('商品总价'); ?></dt><dd><?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->delivery_time . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <dt><?php echo $this->translate('配送费用'); ?></dt><dd><?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->line_spacing . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <dt><?php echo $this->translate('支付手续'); ?></dt><dd><?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->pages . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <dt><?php echo $this->translate('购买优惠'); ?></dt><dd>- <?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->price . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <dt><?php echo $this->translate('会员优惠'); ?></dt><dd>- <?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->ratio . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <?php if(isset($this->order_info->coupon_pre_fee) and $this->order_info->coupon_pre_fee > 0) { ?>
                        <dt><?php echo $this->translate('优惠券优惠'); ?></dt><dd>- <?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->time . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <?php } ?>
                    <?php if(isset($this->order_info->integral_buy_price) and $this->order_info->integral_buy_price > 0) { ?>
                    <dt><?php echo $this->translate('积分购买'); ?></dt><dd>- <?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->integral_buy_price . '&nbsp;' . $this->order_info->currency_unit; ?></dd>
                    <?php } ?>
                    <?php if(isset($this->order_amount_log) and !empty($this->order_amount_log)) { ?>
                    <dt><?php echo $this->translate('总额修改'); ?></dt><dd>
                    <table>
                    <?php
                        foreach($this->order_amount_log as $amount_log) {
                        ?>
                    <tr>
                    <td><?php echo '<font color="'.($amount_log['order_edit_amount_type'] == '-' ? 'red' : 'green').'">'.$amount_log['order_edit_amount_type'] . $this->order_info->currency_symbol.ltrim($amount_log['order_edit_number'], '-').$this->order_info->currency_unit.'</font>'; ?></td>
                    <td>[<?php echo '<strong>'.$this->translate('时间').'：</strong>'.date("Y-m-d H:i:s", $amount_log['order_edit_amount_time']); ?>]</td>
                    <td><?php if (!empty($amount_log['order_edit_amount_info'])) { ?>&nbsp;&nbsp;[<?php echo '<strong>'.$this->translate('备注').'：</strong>'.$this->escapeHtml($amount_log['order_edit_amount_info']).']'; } ?>&nbsp;</td>
                    </tr>
                    <?php } ?>
                    </table>
                        </dd>
                    <?php } ?>

                    <dt><?php echo $this->translate('订单总额'); ?></dt><dd><font size="4" color="#ED145B"><?php echo $this->order_info->currency_symbol . '&nbsp;' . $this->order_info->order_amount . '&nbsp;' . $this->order_info->currency_unit; ?></font></dd>
    			</dl>
            </div>
          </div>
        </div>


      </div>
    </div>
  </form>
</div>
